<div class="ov-container">
    <div class="tb-container">
        <h3 class="tb-title">Dataset Statistics</h3>
        <div>
            <table class="rp-table">
                {% for h, d in context.components.overview[0].items() %}
                <tr>
                    <th>{{ h }}</th>
                    <td>{{ d }}</td>
                </tr>
                {% endfor %}
                <tr style="height: 62px;">
                    <th style="vertical-align: top;">Variable Types</th>
                    <td style="padding: 0 0.5em;">
                        <ul style="list-style: none;padding-left: 0;margin: 0;">
                            {% for tp, num in context.components.overview[1].items() %}
                            <li>{{ tp }}: {{ num }}</li>
                            {% endfor %}
                        </ul>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    {% if context.components.overview_insights %}
    <div class="tb-container">
        <h3 class="tb-title">Dataset Insights</h3>
        {% for page, content in context.components.overview_insights.items() %}
        <div class="page-box" id="page-{{ loop.index }}">
            <table>
                {% for entry in content %}
                {% for ins_type, insight in entry.items() %}
                <tr>
                    <th id="des">
                        {{ insight|escape|replace('/*start*/', '<span class="col-name">')|replace('/*end*/', '</span>') }}
                    </th>
                    <td><span class="ins-type">{{ ins_type }}</span></td>
                </tr>
                {% endfor %}
                {% endfor %}
            </table>
        </div>
        {% endfor %}
        <div class="page-switch-box">
            <ul class="page-switch">
                {% for _ in context.components.overview_insights %}
                {% if loop.length > 1 %}
                <li id="switch-{{ loop.index }}" onclick="switchPage(this)">{{ loop.index }}</li>
                {% endif %}
                {% endfor %}
            </ul>
        </div>
    </div>
    {% endif %}
</div>
